package cn.stard.controller;

import cn.stard.domian.Store;
import cn.stard.mapper.StoreMapper;
import cn.stard.util.ajx;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class StoreController {
@Autowired
private StoreMapper storeMapper;
    @PostMapping("store/add")
    public ajx add( @RequestBody Store store){
        storeMapper.add(store);
            return new ajx();
    }
}
